package com.example.home_form.homework;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("studentInfo20Service")
public class FormInfoServiceImpl implements FormInfoService {
    @Resource
    private FormInfoDao formInfoDao;


    @Override
    public FormInfo queryById(String id) {
        return formInfoDao.queryById(id);
    }



    @Override
    public FormInfo insert(FormInfo formInfo) {
        formInfoDao.insert(formInfo);
        return formInfo;
    }

    @Override
    public FormInfo update(FormInfo formInfo) {
        formInfoDao.update(formInfo);
        return formInfo;
    }

    @Override
    public boolean deleteById(String id) {
        return formInfoDao.deleteById() > 0;
    }

    @Override
    public int queryCount() {
        return formInfoDao.queryCount();
    }

    @Override
    public List<FormInfo> queryByName(FormInfo info) {
        return formInfoDao.queryByName(info);
    }

    @Override
    public FormInfo queryOne(FormInfo formInfo) {
        return formInfoDao.queryOne(formInfo);
    }
}
